import {
	myRequest
} from "./apiRequest"
export const mineApi = {
	getUserInfo: (data) => { //获取个人信息
		return myRequest('api/user', 'get', data)
	},
	updaeUserInfo: (data) => { //获取个人信息
		return myRequest('api/user/edit', 'post', data)
	},
	getFeedback: (data) => { //反馈
		return myRequest('feedback/add', 'post', data)
	},
	//优惠券
	getCouponList: (data) => { //可领优惠卷列表
		return myRequest('api/coupons', 'get', data)
	},
	receiveCoupon: (data) => { //领取优惠券
		return myRequest('api/coupon/receive', 'post', data)
	},
	userCouponList: (data) => { //我的优惠券
		return myRequest('api/coupons/user/' + data.types, 'get')
	},
	//地址
	addressList: (data) => { //地址列表
		return myRequest('api/address/list', 'get', data)
	},
	addAddress: (data) => { //添加地址
		return myRequest('api/address/edit', 'post', data)
	},
	editAddress: (data) => { //编辑地址
		return myRequest('api/address/edit', 'post', data)
	},
	delAddress: (data) => { //删除地址
		return myRequest('api/address/del', 'post', data)
	},
	getAddressInfo: (data) => { //删除地址
		return myRequest(`api/address/detail/${data}`, 'get')
	},
	//发票
	getInvoiceList: (data) => { //发票列表
		return myRequest('api/invoice/orderList', 'get', data)
	},
	applyInvoice: (data) => { //发票列表
		return myRequest('api/invoice/updateInvoiceId', 'post', data)
	},
	getInvoiceTitleList: (data) => { //发票抬头列表
		return myRequest('api/invoice/list', 'get', data)
	},
	addInvoiceTitle: (data) => { //新增发票抬头
		return myRequest('api/invoice/edit', 'post', data)
	},
	editInvoiceTitle: (data) => { //编辑抬头
		return myRequest('api/invoice/edit', 'post', data)
	},
	//购物车
	addCar: (data) => { //加入购物车
		return myRequest('api/cart/add', 'post', data)
	},
	getCarList: (data) => { //获取购物车列表
		return myRequest('api/cart/list', 'get', data)
	},
	carNmuUpdate: (data) => { //修改数量
		return myRequest('api/cart/num', 'post', data)
	},
	delCar: (data) => { //删除物品
		return myRequest('api/cart/del', 'post', data)
	},
	//认证
	submitAuthenticate: (data) => {
		return myRequest('user_authenticate/add', 'post', data)
	},
	getAuthenticateInfo: (data) => {
		return myRequest('user_authenticate/read', 'get', data)
	},
	editAuthenticate: (data) => {
		return myRequest('user_authenticate/update', 'get', data)
	},
	//shouhou


	getShouhou: (data) => {
		return myRequest('api/article/details/2', 'get', data)
	},
	getQishouZhunze: (data) => {
		return myRequest('api/article/details/1', 'get', data)
	},

}